package me.jollyfly.jshop.item.server.dao;

import me.jollyfly.jshop.item.client.model.ItemDO;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * @author jollyfly
 */
@Repository
public interface ItemDAO extends Mapper<ItemDO>, MySqlMapper<ItemDO> {

    /**
     * 根据商品分类获取该分类的所有推荐商品
     * @param cid
     * @return
     * @author jollyfly
     */
    List<ItemDO> listRecommendation(Long cid);
}
